/** 
 * 字符串用法
*/
package edu.gzz;

public class StringTest {
	public static void main(String args[]) {
		var str = new String("hello string");

		System.out.println(str.concat(" program"));

		System.out.println(str.substring(1, 5));
		System.out.println(str.contains("hee"));

		System.out.println("hashCode:\t" + str.hashCode());
		System.out.println("toString:\t" + str.toString());
	}
}
